package templat.method.pattern.demo;

import engineering.papers.BasicEngineering;
import engineering.papers.ComputerScience;
import engineering.papers.Electronics;

/**
 * Created by DELL
 * Date: 2019/9/28.
 * Time: 15:29
 */
public class TemplateMethodPatternEx {
    public static void main(String[] args) {
        System.out.println("***TemplatMethodPattern Demo***");

        BasicEngineering bs = new ComputerScience();
        System.out.println("Computer Sc Papers");
        bs.papers();
        System.out.println();
        bs = new Electronics();
        System.out.println("Electronics Papers");
        bs.papers();
    }
}
